<?php

namespace AdminBundle\Repository;


class HuobiCalcKline30minRepository extends BaseRepository
{
    /**
     *
     * @param $alias_key
     * @param int $status ; 0=正常,1=暂停
     * @return mixed
     * @throws \Exception
     */
    public function isPauseForMode($alias_key, $status = 1)
    {
        $sql = 'select * from huobi_switch_model where alias_key = :alias_key and status = :status';
        $params = ['alias_key' => $alias_key, 'status' => $status];

        $result = $this->rawQuery($sql, $params);

        return $result ? true : false;
    }

}
